AL GET SOUND FORMAT

This function will return the format of a sound. The format is retrieved from the sound file when it was loaded and determines how DarkAL will play the sound. For example, only mono sound files can be used for 3D audio, while stereo and other multichannel formats cannot.

  Syntax
Return Integer = AL GET SOUND FORMAT( soundNumber )
  Parameters
soundNumber
Integer
The sound number.

  Returns

Returns the format of a sound as an integer value. Each return value refers to a specific raw/decoded audio format, listed here:

-1 = Unknown Format (or sound didn't exist)
0 = 8-Bit Mono
1 = 8-Bit Stereo
2 = 16-Bit Mono
3 = 16-Bit Stereo

  See also

DarkAL Functions Menu